home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
gt3_b12.zip
/
TPSTRUC.ZIP
/
GT3STRUC.PAS
next >
Wrap
Pascal/Delphi Source File
|
1990-08-11
|
2KB
|
80 lines
{$L-}
{$D-}
{$O+}
{$F+}
{ Ghost Town 3 - The Final Draw }
Unit Gt3Struc;
Interface
Uses Dos;
Const
Version = 'v.05';
CowboyData = 'GT3USER.DAT';
MapData = 'GT3MAP.DAT';
CampData = 'GT3CAMP.DAT';
Type
Terrain_Type = (Swamp,Desert,River,Forest,Mountains,Hole,Road,Grave,
Grassland,Brush,Town);
Camp_Rec = Record
CName:String[32];
MenProd:LongInt;
MenIn:LongInt;
Owner:Integer;
CLPlayer:String[32];
End;
Direction_Rec = Record
North,South,East,West:Byte;
End;
MapPointer = ^Map_Rec;
Map_Rec = Record
Terrain:Terrain_Type;
Ways:Direction_Rec;
MGold:LongInt;
MCamp:LongInt;
Owner:Integer;
MMen:LongInt;
MLPlayer:String[32];
Pioneers:Boolean;
End;
Player_Rec = Record
RealName:String[32];
PlayerName:String[32];
LastDate:String[10];
PGold:LongInt;
Horse:Boolean;
Dead:Boolean;
Turns:Integer;
PMen:LongInt;
PX:Integer; { Starting 8 }
PY:Integer; { Starting 1 }
Line1:String[78];
Line2:String[78];
Line3:String[78];
Line4:String[78];
Line5:String[78];
End;
Var
PlayerFile:File Of Player_Rec;
MapFile:File Of Map_Rec;
CampFile:File Of Camp_Rec;
CampNum,CurPlayer:Integer;
InitItem:MapPointer;
Cur_Plyr,Enemy,Player1,Player2,Player3:Player_Rec;
Map1,Map2,Map3,Map4,Map5,Map6:Map_Rec;
Camp1,Camp2,Camp3,Camp4,Camp5:Camp_Rec;
Implementation
Begin
End.